Getting Started Guide
147
•
HPFS (OS/2 filesystems, read only in Linux, write is considered experi-
mental)
•
iso9660 (CD-ROMs)
•
Several types of UNIX filesystems
The filesystems that are defined to automatically become part of your Linux root
filesystem when you start Linux are specified in the /etc/fstab file. You can use
the mount command (see man mount) to access other filesystems from within
Linux.
Depending on the permission you have been granted, these can be both local file-
systems such as a CD-ROM, floppy disk, or Windows partition data, or remote
filesystems such as NFS volumes. If you have defined a filesystem device within
the /etc/fstab file (this is done automatically for some devices during the installa-
tion process), you can mount that device by referring to its mount point (/mnt/
cdrom) or device name (/dev/cdrom). For example:
mount /mnt/cdrom
Otherwise, you must enter additional information to tell Linux how to work with
the filesystem. For example, here the filesystem type, device name, and mount
point are all included in the command:
mount -t iso9660 /dev/hdc /mnt/cdrom
A still easier way to access CD-ROMs is by typing cd /auto/cdrom or by clicking
on the CD icon on the KDE desktop.
grep Command
The grep command is a pattern searching utility that is often used from the Linux
command line. By providing a pattern to search for and the filenames to search,
grep displays all of the lines of text in the files that contain the requested pattern.
For example, if you had a large text file named datafile.txt and wanted to see all
lines containing the word Compaq, you could use this command to display them:
grep Compaq datafile.txt